class  Petdog{
    public String name;
    public String sex;
    public String color;

    public void barks(){  System.out.println(name+"旺旺叫");}
    public void  wag(){ System.out.println(name+"摇尾巴");}
        }

public class test3 {
    public static void main(String[] args) {
       Petdog petdog=new Petdog();
       petdog.name="小白";

       petdog.wag();
       petdog.barks();

    }
}
